const Router = require('@koa/router')
const User = require('../controllers/userController')
const router = new Router({
    prefix: '/user',
})

router.post('/add', User.create)

router.get('/list', User.findList)

router.delete('/:id', User.remove)

router.post('/reset', User.resetPassword)

router.get('/info', User.findUser)

module.exports = router
